package com.syq;

import java.util.function.BiFunction;
import java.util.function.Function;

/**
 * @author Sun Yueqi
 * @version 1.00
 * @time 2022/6/8 19:29
 */
public class TestBiFunction4 {
    public static void main(String[] args) {
//        BiFunction<String,String,Integer> biFunction=new BiFunction<String, String, Integer>() {
//            @Override
//            public Integer apply(String s, String s2) {
//                return s.length()+s2.length();
//            }
//        };
//        System.err.println(biFunction.apply("123", "1"));

        BiFunction<Integer,Integer,Integer> biFunction= (s1,s2)->{
            return s1*s2;
        };

        System.err.println(biFunction.apply(15, 155));

        Function<Integer,Integer> function=param->{
            return param*10;
        };

        System.err.println(biFunction.andThen(function).apply(15, 123));
    }
}
